@model ShivamEMR.Model.Domain.PatientDomain.Diagnosis

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Title)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Title)
    @Html.ValidationMessageFor(model => model.Title)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Description)
    @Html.ValidationMessageFor(model => model.Description)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div>

<div class="editor-label">
    Patient
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.PatientID, ((IEnumerable<ShivamEMR.Model.Domain.PatientDomain.Patient>)ViewBag.PossiblePatients).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Title), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.PatientID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.PatientID)
</div>
<div class="editor-label">
    DiagnosisStatus
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.DiagnosisStatusID, ((IEnumerable<ShivamEMR.Model.Domain.PatientDomain.DiagnosisStatus>)ViewBag.PossibleDiagnosisStatus).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.DiagnosisStatusID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.DiagnosisStatusID)
</div>
<div class="editor-label">
    Admission
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.AdmissionID, ((IEnumerable<ShivamEMR.Model.Domain.PatientDomain.Admission>)ViewBag.PossibleAdmissions).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.AdmissionID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.AdmissionID)
</div>
<div class="editor-label">
    DiagnosticsItem
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.DiagnosticsItemID, ((IEnumerable<ShivamEMR.Model.Domain.PatientDomain.DiagnosticsItem>)ViewBag.PossibleDiagnosticsItems).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Name), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.DiagnosticsItemID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.DiagnosticsItemID)
</div>
